import allure
from appium.webdriver.common.appiumby import AppiumBy

from tests.app.pages.edit_member_page import EditMemberPage
from tests.app.pages.wecom import Wecom


class MemberSetupPage(Wecom):
    __EDIT_MEMBER = AppiumBy.XPATH, '//*[@text = "编辑成员"]'

    @allure.step('跳转到编辑成员页面')
    def goto_edit_member_page(self):
        self.find_and_click(self.__EDIT_MEMBER)
        return EditMemberPage(self.driver)
